<template>
  <div>
    <question-list ref="list"></question-list>
    <question-form @fresh="fresh()"></question-form>
  </div>
</template>

<script>
import QuestionList from './QuestionList'
import QuestionForm from './QuestionForm'

export default {
  name: 'Questions',
  components: {
    QuestionList,
    QuestionForm
  },
  methods: {
    fresh() {
      this.$refs.list.fetch()
    }
  }
}
</script>

<style>
</style>
